<%@ page language="java" import="java.util.*" pageEncoding="utf-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
	<meta http-equiv=content-type
		  content="text/html; charset=UTF-8;charset=utf-8"/>
	<title>18团购 - 管理后台</title>
	<link rel="stylesheet" href="../css/index.css" type="text/css" media="screen" charset="utf-8"/>
	<link rel="stylesheet" href="../css/jquery-ui-1.8.14.custom.css" type="text/css" media="screen" charset="utf-8"/>
	<script type="text/javascript" src="../js/jquery-1.6.js"></script>
	<script type="text/javascript" src="../js/jquery-ui-1.8.14.custom.min.js"></script>
	<script type="text/javascript" src="../js/common.js"></script>
	<script type="text/javascript">
		$(function() {
			$('#user_li').attr("class", "current")

		});
	</script>
</head>
<body class="newbie">
<div id="pagemasker"></div>
<div id="dialog"></div>
<div id="doc">
	<jsp:include page="../common/adminHeader.jsp"/>

	<div id="bdw" class="bdw">
		<div id="bd" class="cf">
			<div id="coupons">
				<div class="dashboard" id="dashboard">
					<ul>
						<li>
							<a href="/admin/listUser.action">用户列表</a><span></span>
						</li>
						<li class="current">
							<a href="/admin/listAdmin.action">管理员列表</a><span></span>
						</li>
					</ul>
				</div>
				<div id="content" class="coupons-box clear mainwide">
					<div class="box clear">
						<div class="box-top"></div>
						<div class="box-content">
							<div class="head">
								<h2>管理员列表</h2>
								<ul class="filter">
									<li><br/></li>
								</ul>
							</div>
							<div class="sect">
								<table id="orders-list" cellspacing="0" cellpadding="0"
									   border="0" class="coupons-table">
									<tr>
										<th width="30">ID</th>
										<th width="130">Email</th>
										<th width="70" nowrap>用户名</th>
										<th width="40">城市</th>
										<th width="120">注册时间</th>
										<th width="100">联系电话</th>
										<th width="100">权限</th>
										<th width="120">操作</th>
									</tr>
									<s:iterator id="admin" value="admins">
										<tr class="alt" id="team-list-id-3">
											<td>${admin.id}</td>
											<td>${admin.email}</td>
											<td>${admin.username}</td>
											<td>${admin.city.chnName}</td>
											<td>${admin.formatRegTime}</td>
											<td>${admin.mobile}</td>
											<td>
												<c:choose>
													<c:when test="${admin.accountType == 1}">
														管理员
													</c:when>
													<c:when test="${admin.accountType == 0}">
														管理员
													</c:when>
													<c:otherwise>
														未通过验证用户
													</c:otherwise>
												</c:choose>
											</td>
											<td class="op">
												<a href="/admin/editUser.action?id=${admin.id}">编辑</a>
												<a onclick="confirmDelete('确认删除用户${admin.username}?<br><br>此操作无法恢复!',
												   '/admin/deleteUser.action?id=${admin.id}')" href="#">删除</a>
											</td>
										</tr>
									</s:iterator>
								</table>
							</div>
						</div>
						<div class="box-bottom"></div>
					</div>
				</div>
			</div>
		</div>
		<!-- bd end -->
	</div>
	<jsp:include page="../common/footer.jsp"/>
</div>

</body>
</html>